//
//  NotfoundView.m
//  DesighBook
//
//  Created by 梅明 on 15/9/18.
//  Copyright (c) 2015年 梅明. All rights reserved.
//

#import "NotfoundView.h"

#define viewwidth self.frame.size.width

@implementation NotfoundView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)createNotFounddvie
{
    UIImageView *imgview = [[UIImageView alloc]initWithFrame:CGRectMake(viewwidth/2-30, 0, 60, 60)];
    imgview.image = [UIImage imageNamed:@"ico_no_content.png"];
    [self addSubview:imgview];
    
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 80, viewwidth, 30)];
    label.text = @"抱歉,未找到符合条件的图片";
    label.textAlignment = NSTextAlignmentCenter;
    label.textColor = [UIColor lightGrayColor];
    [self addSubview:label];
    
}

@end
